package main

import "fmt"

func main(){
	slice1 := []int{1,2,3,4,5,6}
	slice2 := []int{2,3,4,5,6,7}
	count := 0
	for _,a := range slice1{
		for _,b := range slice2{
			if a == b {
				count++
				break
			}
		}
	}
	fmt.Printf("相同个数为%d \n", count)

}
